home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / dsp / dr.bub / 96000.lha / 96000 / appb / b14.asm < prev    next >
Assembly Source File  |  1992-04-28  |  1KB  |  30 lines

  1. ; This program was originally published in the Motorola DSP96002 Users Manual
  2. ; and is provided under a DISCLAIMER OF WARRANTY available from Motorola DSP
  3. ; Operation, 6501 William Cannon Drive West, Austin, Texas 78735-8598.  For
  4. ; more information, refer to the DSP96002 Users Manual, Appendix B, DSP
  5. ; Benchmarks.
  6. ;
  7.  
  8. ; B.1.4    N Real Updates  
  9. ;   d(I) = c(I) + a(I) * b(I), I=1,2,...,N 
  10. ;                                                          Program    ICycles
  11.       org    p:$100
  12. aaddr equ  120
  13. baddr equ  100
  14. caddr equ  300
  15. daddr equ  300
  16. N     equ  400
  17.     move   #aaddr,r0                                           ;    1          1 
  18.     move   #baddr,r4                                           ;    1          1 
  19.     move   #caddr,r1                                           ;    1          1 
  20.     move   #daddr,r5                                           ;    1          1 
  21.     move                         x:(r0)+,d4.s     y:(r4)+,d6.s ;    1          1 
  22.     fmpy.s   d4,d6,d1            x:(r1)+,d0.s                  ;    1          1 
  23.     do     #N,_end                                             ;    2          3 
  24.                    fadd.s d1,d0  x:(r0)+,d4.s     y:(r4)+,d6.s ;    1          1 
  25.     fmpy.s d4,d6,d1              x:(r1)+,d0.s     d0.s,y:(r5)+ ;    1          1 
  26. _end                                                      ;    ---        --- 
  27. ;                                                      Totals:     10        2N+9 
  28. ;                                                             (    10        2N+9) 
  29.